]> dgit.raspbian.org Git - gnome-shell.git/commit
workspace: Position clones using width and height instead of scale
authorJonas Dreßler <verdre@v0yd.nl>
Sun, 1 Sep 2019 09:49:58 +0000 (11:49 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 2 Jun 2020 23:03:06 +0000 (23:03 +0000)
commit7bbce1d5adbd92f477411d6935eb0316d6be717e
treee8f0fbe1c1f0ebe699c859fd8eb9d69e1d85070d
parentbf40d96a83f25b672f807a9e2bd970da3df03e19
workspace: Position clones using width and height instead of scale

Since we now have a layout manager for the WindowClone that allows
allocating it a size that isn't the absolute size of the window, we can
now give the WindowClone an artificial size and it will get scaled
accordingly.

So make use of that and stop positioning WindowClones using fixed
position and scale and use a fixed position and fixed size instead. This
will make it easier to use a ClutterLayoutManager to allocate the
WindowClones, because layout managers should only set the allocation of
their children, not the scale.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1294
js/ui/workspace.js